(function(window, $){
	
	$.dark = {}
	
	/**
	 * 退出系统
	 */
	$.dark.logout = function() {
		$.get($.webapp.ctx+"/front/logout", function() {
			window.location.replace($.webapp.ctx+"/front/login");
		});
	};
	
	$.dark.myinfo = function() {
		var $d = $.easyui.showDialog({
			href: $.webapp.ctx+"/admin/index/ui_myinfo", title: '<div class="icon-div"><i class="fa fa-link fa-120 pt-2 fa-c-blue"></i></div> 个人信息', iniframe: false, topMost: true, iconCls : '',
			width: 750, height: 605, maximizable: true,
            enableApplyButton: false, enableCloseButton: false, enableSaveButton: false
        });
	};
	
	$.dark.modifyMyPwd = function() {
		var $d = $.easyui.showDialog({
			href: $.webapp.ctx+"/admin/index/ui_modify_mypwd", title: '<div class="icon-div"><i class="fa fa-link fa-120 pt-2 fa-c-blue"></i></div> 修改密码', iniframe: false, topMost: true, iconCls : '',
			width: 420, height: 205, maximizable: true,
            enableApplyButton: false, enableCloseButton: false, enableSaveButton: false,
            buttons : [ 
              { text : '<i class="fa fa-save fa-120 mt-6 fa-c-blue"></i> 修改', handler : function() { $.easyui.parent.submitForm($d) ; } },
              { text : '<i class="fa fa-remove fa-120 mt-6 fa-c-red"></i> 关闭', handler : function() { $d.dialog('destroy'); } } 
           	]
        });
	};
	
})(window, jQuery);